from django.urls import path,re_path

from apps.course.views import CourseDirectionListApiView,CourseCategoryListApiView,CourseListApiView,\
  CourseDetaileView,CourseChapterListApiView

urlpatterns = [
  path('direction/',CourseDirectionListApiView.as_view()),
  re_path(r'^category/(?P<directionID>\d+)/$',CourseCategoryListApiView.as_view()),
  re_path(r'^course/(?P<directionID>\d+)/(?P<categoryID>\d+)/$',CourseListApiView.as_view()),
  # 课程详情
  re_path(r'^detailes/(?P<courseID>\d+)/$', CourseDetaileView.as_view()),
  re_path(r'^(?P<courseID>\d+)/chapters/$',CourseChapterListApiView.as_view()),

  ]